package com.lanou.service;

import com.lanou.dao.UserDao;

/**
 * @author lizhongren1.
 */
public class UserService {

    private UserDao userDao = new UserDao();

    public boolean login(String uname, String password){

        Integer result = userDao.findUserByNameAndPassword(uname, password);

        if (result > 0){
            return true;
        }

        return false;
    }


    public void test(){
        
    }


}
